﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.PoseEditor.CApKinPoseEditorApp
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.PoseEditor;

internal class CApKinPoseEditorApp
{
  public static string GetUniquePoseName(ITxDevice device)
  {
    string uniquePoseName = (string) null;
    for (int index = 1; index < 999; ++index)
    {
      string str = PoseEditorStringTable.DEFAULT_POSE_NAME_PREFIX + index.ToString();
      if (!TxEngineeringDataInternal.DoesPoseExist(device, str))
      {
        uniquePoseName = str;
        break;
      }
    }
    return uniquePoseName;
  }

  public static bool IsUniquePoseName(ITxDevice device, string poseName)
  {
    return !TxEngineeringDataInternal.DoesPoseExist(device, poseName);
  }
}
